{{- if or (not .Values.istio.auth.externalAuthentication ) (eq (include "helm_lib_module_https_mode" .) "Disabled") }}
---
apiVersion: v1
kind: Secret
metadata:
  name: kiali-basic-auth
  namespace: d8-{{ .Chart.Name }}
  {{- include "helm_lib_module_labels" (list . (dict "app" "kiali")) | nindent 2 }}
type: Opaque
data:
  auth: {{ print "admin:{PLAIN}" .Values.istio.internal.auth.password | b64enc | quote }}
{{- end }}
